package com.andyage.admin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.andyage.admin.bean.LotteryBean;
import com.andyage.admin.dao.LotteryMapper;
import com.andyage.admin.service.ILotteryService;
import com.andyage.util.JsonContent;
@Service
public class LotteryServiceImpl implements ILotteryService {
	@Resource
	private LotteryMapper lotteryMapper;
	@Override
	public String queryqueryLotteryedInfo(LotteryBean loBean) throws Exception {
		List<LotteryBean> list = lotteryMapper.queryqueryLotteryedInfo(loBean);
		int total = lotteryMapper.queryLotteryInfoCount(loBean);
		return JsonContent.getJsonArray(list, total);
	}

}
